package org.jeecg.modules.demo.mall.yxshopsku.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.mall.entity.YxShopSku;
import org.jeecg.modules.demo.mall.yxshopsku.mapper.YxShopSkuMapper;
import org.jeecg.modules.demo.mall.yxshopsku.service.IYxShopSkuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: yx_shop_sku
 * @Author: jeecg-boot
 * @Date: 2023-12-07
 * @Version: V1.0
 */
@Service
public class YxShopSkuServiceImpl extends ServiceImpl<YxShopSkuMapper, YxShopSku> implements IYxShopSkuService {

    @Override
    public List<YxShopSku> querySkuList(Long storeId) {
        LambdaQueryWrapper<YxShopSku> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(YxShopSku::getStoreId, storeId);
        return this.list(wrapper);
    }
}
